<?php
include('db.php');
if($_POST)
{
    $q = mysql_real_escape_string($_POST['search']);
    $strSQL_Result = mysql_query("select * from saddles where product_name like '%$q%' order by id LIMIT 5");
    while($row=mysql_fetch_array($strSQL_Result))
    {
		$id = $row['id'];
        $name   = $row['product_name'];
        $b_name = '<strong>'.$q.'</strong>';
        $final_name = str_ireplace($q, $b_name, $name);
        ?>
            <div class="show" align="left">
                <img src="../images/saddles/<?php echo $id ?>_1.jpg" width="50" height="50" style="width:50px; height:50px; float:left; margin-right:6px;" /><span class="name"><?php echo $final_name; ?></span>&nbsp;<br/><br/>
            </div>
        <?php
    }
}
?>